using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BasicData.Domain.Entities
{
    public class BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long Id { get; set; }
        [SugarColumn(IsNullable = false, DefaultValue = "0")]
        public bool IsDeleted { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? CreatedAt { get; set; } = DateTime.Now;

        [SugarColumn(IsNullable = true, Length = 50)]
        public string CreatedBy { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? UpdatedAt { get; set; }

        [SugarColumn(IsNullable = true, Length = 50)]
        public string UpdatedBy { get; set; }

    }
} 